package com.fitns.user.dao.user;

import com.fitns.user.dto.user.RoleCondition;
import com.fitns.user.dto.user.RoleVO;
import com.fitns.user.model.user.Role;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RoleDao {

    List<RoleVO> findByUserId(Long userId);

    void insert(Role role);

    List<RoleVO> search(Role role);

    List<RoleVO> selectBatchIds(List<Long> ids);

    RoleVO searchByName(@Param("name") String name,@Param("createId") Long createId);

    List<RoleVO> searchList(RoleCondition roleCondition);

    List<RoleVO> searchByRole(Role role);

    Role findById(Long id);

    void update(Role role);

    void deleteById(Long id);



}